package com.ysw.springbootproject02.exception;

/**
 * @author 月上微
 * @date 2025/2/18
 * @since 20:49
 * 自定义异常
 */
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}